package com.foreknow.practice.impl.Impl4;

public class Adventure {
    public static void main(String[] args) {
        Hero hb = new Hero();
//        hb.swim();
//        hb.fight("熊大");
//        hb.fly();
        CanFly cf = new Hero();
        cf=hb;
        cf.fly();

        CanSwim cs = new Hero();
        cs=hb;
        cs.swim();
        ActionCharacter ac = new Hero();
        ac=hb;
        ac.fight("熊大");
        ac.speak("熊二");
    }
}
